package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Sale;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface SaleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Sale record);

    Sale selectByPrimaryKey(Long id);

    List<Sale> selectAll();

    int updateByPrimaryKey(Sale record);

    Sale select(Long id);


    List<Map<String,Object>> saleanalyze();

    int queryForCount(QueryObject qo);

    List<Map<String,Object>> queryForList(QueryObject qo);

    List<Map<String,Object>> queryList(QueryObject qo);

    int queryCount(QueryObject qo);

    List<Map<String,Object>> selectData(QueryObject qo);
}